package orchestration.android.execution.tasks;

import android.content.Intent;
import android.util.Log;
import orchestration.android.RunExecutionActivity;
import orchestration.android.execution.exceptions.TaskExecutionException;
import orchestration.persistence.exceptions.UnsupportedTypeException;

public class StartProcessTask extends AndroidTask{

	public StartProcessTask(String id) {
		super(id);
	}

	@Override
	public void onExecute(RunExecutionActivity atl) throws TaskExecutionException {
		Log.w("Start", "process start");
		Intent inputIntent= atl.getIntent();
		try {
			saveTaskOutput(atl, inputIntent);
		} catch (UnsupportedTypeException e) {
			throw new TaskExecutionException(e);
		}
	}

}
